Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server


Connecting a schema holder at startup

OpenEdge supports connection parameters that you can use to connect both the OpenEdge schema holder and an MS SQL Server database at startup. These parameters control how your system connects to a database. If the DataServer runs in a remote configuration, your startup command or parameter file always includes parameters that control networking options.

Table 6–1 describes the database connection parameters that you use when you connect to a schema holder and an MS SQL Server database through the DataServer.

Table 6–1: DataServer connection parameters
Parameter
Status
Description
Database Type MSS
(-dt MSS)
Optional
Specifies that the type of the target data source is MS SQL Server.
If not specified, the server will resolve the database type.
Physical Database Name
(-db)
Required
Indicates the name by which OpenEdge recognizes the MS SQL Server database to which you want to connect. This name must match the name that you used when you registered the data source as an MS SQL Server database.
Logical Database Name
(-ld)
Optional
Specifies the logical name of the MS SQL Server database. This is the name that you use to refer to the data source in your applications. You must use this parameter only when the logical data source name differs from its physical name. This name should match the logical database name that you defined in your schema holder.
For example, your applications might refer to the MS SQL Server demo database as mydemo. In this case, the physical name is demo, and the logical name is mydemo.
If not specified, the logical database name is assumed to be the same as the physical name. An error will be generated if the physical name and logical name do not match when this parameter is omitted.
Host Name
(-H)
Required for remote DataServer
Indicates the name of the Windows host machine in the network.
Service Name
(-S)
Required for remote DataServer
Indicates the name of the service you are calling. If you use NameServer with Progress Explorer, specify the service name or port number on the host machine where the NameServer resides. If you are using ProBroker or the Progress Explorer without a NameServer, specify the service name or port number on the host machine where the broker resides.
User ID
(-U)
Required
Supplies the login name that the DataServer uses to log into the MS SQL Server database.
Explorer Redirection
(-SVUB)
Required for Progress Explorer connections
Redirects connection logic to the Progress Explorer instead of ProBroker. For more information see the "Starting and stopping a broker process from the Progress Explorer and connecting a client" section.
Data Service
(-DataService)
Required for Progress Explorer connections
Specifies the data service the NameServer uses. For more information, see the "Starting and stopping a broker process from the Progress Explorer and connecting a client" section.
Direct Connect
(-DirectConnect)
Optional. For use with Progress Explorer connections
Instructs the client to bypass the controlling NameServer and connect directly to the MS SQL Server DataServer Broker.
If not specified, the connection is made through the NameServer.
Password
(-P)
Required
Supplies the password that the DataServer uses to log into the MS SQL Server database. Different login name and password combinations allow for different levels of user privileges.
Single–User Mode
(-1)
Optional
Specifies that a schema holder is used in single-user mode. Single–User Mode is the default unless a server is started for the schema holder.
If not specified, -RO or remote connection parameters are required.
Read-Only
(-RO)
Optional
Specifies that a schema holder is read-only. Connecting a schema holder as read-only increases processing speed at client startup time. It also allows multiple client processes on the same machine to access the schema holder without starting additional server processes.
If not specified, the database is opened for update as well as read access.
Local Cache
(-cache)
Optional
Specifies that you are using a local cache file for the schema holder. Create the cache file with the SAVE CACHE COMPLETE statement.
If not specified, no cache file is used.
DataServer
(-Dsrv)
See note
Specifies options with which you control your ODBC Driver and DataServer environment. See the "Query tuning with connection and startup parameters" section for more information.

Note: When you specify a list of -Dsrv parameters, be sure not to include any spaces anywhere in this list.

Server Join
(-nojoinbysqldb)
Optional
Specifies that the client evaluates and performs queries that have joins. This might slow performance, but it provides results that are consistent with the query of an OpenEdge database.
Use -nojoinbysqldb at startup time.
If not specified, the server will perform joins, but results may not be consistent with identical joins run against an OpenEdge database.

You can create a parameter file for each database:

You can add more startup and connection parameters than the ones listed—these are the typical parameters. For a complete list of parameters and for information on how to create a parameter file, see OpenEdge Deployment: Startup Command and Parameter Reference .

Using a local DataServer configuration: Examples

Use the following general command syntax to start OpenEdge:

You can type these commands on the command line of a program item property box.

The following examples start OpenEdge in a local DataServer configuration:

Using a remote DataServer configuration

The examples in the first part of this section show how to use specific command syntax to start OpenEdge in the following modes:

Examples

Note the following command syntax used in a Windows client:

prowin32 schema-holder-name -1 -db datasrc-name -dt MSS
  -ld logical-datasrc-name -H hostname -S service-name
  -U userID -P password -Dsrv qt_debug,EXTENDED 

Note the following command used on a UNIX client:

pro schema-holder-name -db datasrc-name -dt MSS
  -ld logical-datasrc-name -H hostname -S service-name
  -U userID -P password -Dsrv qt_debug,EXTENDED 

The examples in the second part of this section allow you to start OpenEdge in a remote DataServer configuration:

Examples

Note the following command syntax used in a Windows client:

prowin32 mssholder -RO -db sports -dt MSS -ld mydemo -H host1
-S mssport -U bob -P bobpass -Dsrv qt_debug,EXTENDED 

Note the following command syntax used on a UNIX client:

pro mssholder -RO -db sports -dt MSS -ld mydemo -H host1
-S mssport -U bob -P bobpass -Dsrv qt_debug,EXTENDED 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095